<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增会议室管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-manager-add">
            <div class="form-group">
                <label class="col-sm-3 control-label">编号</label>
                <div class="col-sm-8">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">名称</label>
                <div class="col-sm-8">
                    <input name="meetingAddressName" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">创建人</label>
                <div class="col-sm-8">
                    <input name="createPerson" class="form-control" type="text" th:value="${@permission.getPrincipalProperty('userName')}" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">创建时间</label>
                <div class="col-sm-8">
                    <input name="createTime" class="form-control" type="text" th:value="${#dates.format(new java.util.Date(),'yyyy-MM-dd HH:mm:ss')}" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">地址</label>
                <div class="col-sm-8">
                    <input name="address" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">类型</label>
                <div class="col-sm-8">
                    <select name="type" class="form-control">
                        <option value="">请选择</option>
                        <option value="0">普通会议室</option>
                        <option value="1">路演厅</option>
                        <option value="2">其他</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">状态</label>
                <div class="col-sm-8">
                    <select name="status" class="form-control">
                        <option value="0">正常(默认)</option>
                        <option value="1">使用中</option>
                        <option value="2">维修中</option>
                        <option value="3">已停用</option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">是否可投影:</label>
                <div class="col-sm-8">
                    <select name="projection" class="form-control">
                        <option value="">请选择</option>
                        <option value="0">可投影</option>
                        <option value="1">不可以投影</option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">空间</label>
                <div class="col-sm-8">
                    <input name="area" class="form-control" type="text"><span>（平方米）</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">可容纳人数</label>
                <div class="col-sm-8">
                    <input name="size" class="form-control" type="text"><span>（人）</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">附件:</label>
                <div class="col-sm-8">
                    <textarea name="text" class="form-control"></textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注:</label>
                <div class="col-sm-8">
                    <textarea name="context" class="form-control"></textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "meeting/manager"
        $("#form-manager-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-manager-add').serialize());
            }
        }
    </script>
</body>
</html>